package com.siashan.toolkit.oss.aws;

import com.siashan.toolkit.oss.aws.core.AwsS3StorageService;
import com.siashan.toolkit.oss.core.OssStorageService;

/**
 * AWS S3 工厂类
 *
 * @author siashan
 * @date 2025-06-05
 **/
public class AwsS3FactoryProvider {

    private AwsS3Properties awsS3Properties;


    public AwsS3FactoryProvider(AwsS3Properties awsS3Properties) {
        this.awsS3Properties = awsS3Properties;
    }


    /**
     * 获取存储服务类
     *
     * @return 阿里云Oss存储服务类
     */
    public OssStorageService getStoreageService() {
        return new AwsS3StorageService(awsS3Properties.getConfig());
    }

}
